package com.ruoyi.base.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 站点业务对象 base_bs_zd
 *
 * @author zxs
 * @date 2024-09-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BaseBsZdBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属标段id
     */
    @NotNull(message = "所属标段id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long bdId;

    /**
     * 父id
     */
//    @NotNull(message = "父id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 站点名称
     */
    @NotBlank(message = "站点名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 排序
     */
//    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 建设场景
     */
    @NotBlank(message = "建设场景不能为空", groups = { AddGroup.class, EditGroup.class })
    private String jianscj;

    /**
     * 建设容量
     */
    @NotNull(message = "建设容量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal jiansrl;

    /**
     * 单瓦造价
     */
    @NotNull(message = "单瓦造价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal danwzj;
    //变动价格
    private BigDecimal chgPrice;
    //站点合同额=建设容量乘以单瓦造价；
    private BigDecimal zdContractAmount;

    /**
     * 备案证名称
     */
    @NotBlank(message = "备案证名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String beiazmc;

    /**
     * 所属标段名称
     */
    @NotBlank(message = "所属标段名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bdName;
    //地址
    private String address;

    // 实际建设容量
    private BigDecimal jiansrlActual;

    // 实际建设容量
    private BigDecimal zdContractAmountActual;
}
